package com.yequan.file.delete;

import java.io.File;

/**
 * @author yequan
 * @date 2019/12/21
 */
public class DeleteFileTask implements Runnable {

    private File file;

    public DeleteFileTask(File file) {
        this.file = file;
    }

    @Override
    public void run() {
        FileUtil.deleteFile(file);
        System.out.println("已删除文件：" + file.getAbsolutePath());
    }
}
